home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / windownt / tusrc.zip / CHANGE~1 < prev    next >
Text File  |  1993-09-18  |  41KB  |  1,151 lines

  1. Sat May 22 02:13:12 1993  Jim Meyering  (meyering@comco.com)
  2.  
  3.     * Version 1.6.
  4.  
  5. Fri May 21 22:57:53 1993  Jim Meyering  (meyering@comco.com)
  6.  
  7.     * pr.c (cols_ready_to_print): New function.  It replaces a global
  8.     variable by the same name and computes on the fly the value that
  9.     was supposed to be maintained through that variable.  This should
  10.     put to rest the `pr -2a' bug.
  11.     (main): Don't let getopt_long reorder arguments so we can
  12.     distinguish between `pr -1 -2' and `pr -12'.  Rework handling of
  13.     -n and +n options.
  14.  
  15.     * fold.c: Declare xmalloc.
  16.  
  17. Wed May 19 19:12:18 1993  Karl Berry  (karl@owl.hq.ileaf.com)
  18.  
  19.     * sort.c (main): fflush before exit, so a closed stdout doesn't lose.
  20.  
  21. Tue May 18 23:49:26 1993  Jim Meyering (meyering@comco.com)
  22.  
  23.     * mkinstalldirs: New file.
  24.     * Makefile.in (installdirs): Use it to create installation directories.
  25.  
  26. Fri May 14 23:45:52 1993  Jim Meyering  (meyering@comco.com)
  27.  
  28.     * all source: With --version, print version and exit immediately.
  29.  
  30. Thu May 13 01:03:16 1993  Jim Meyering  (meyering@comco.com)
  31.  
  32.     * Makefile.in (installdirs): New rules for creating installation
  33.     directories. (install): depend on it.
  34.  
  35.     * tail.c (main): Remove --compatible since `+1f' may be used
  36.     to get the BSD `-0f' behavior portably.
  37.  
  38.     * fold.c (main): Turn -N arguments, where N is a digit, into -wN.
  39.     From Ian Lance Taylor (ian@cygnus.com).
  40.  
  41. Mon May 10 22:33:44 1993  Jim Meyering  (meyering@comco.com)
  42.  
  43.     * tail.c (main): New option -C, --compatible to make `tail -0f'
  44.     work like `tail +1f' for compatibility with BSD tail.
  45.  
  46. Thu May  6 23:28:56 1993  Jim Meyering  (meyering@comco.com)
  47.  
  48.     * pr.c (print_page): Decrement cols_ready_to_print even when
  49.     lines_to_print == 0.  The command `echo |pr -2ta' *still* didn't
  50.     terminate.  Add parentheses for clarity.
  51.  
  52. Mon May  3 23:57:47 1993  Jim Meyering  (meyering@comco.com)
  53.  
  54.     * Version 1.5.
  55.  
  56.     * od.c (main): Remove set-but-not-used variable, `usage_error'.
  57.  
  58.     * split.c (main): Call usage with an argument.
  59.  
  60. Sun May  2 16:05:04 1993  Jim Meyering  (meyering@comco.com)
  61.  
  62.     * configure.in: Reverse if-else branches in AC_TEST_PROGRAM test
  63.     for 8-bit clean memcmp.
  64.  
  65.     * cat.c (usage, main): Remove unused argument.
  66.  
  67.     * csplit.c (remove_line): Remove set-but-not-used variable, `line_got.'
  68.     (check_for_offset): Remove unused argument `argnum.'
  69.  
  70.     * configure.in: Add AC_SIZE_T.
  71.  
  72. Sat May  1 09:03:19 1993  Jim Meyering  (meyering@comco.com)
  73.  
  74.     * uniq.c (main): Interpret non-option arguments with a leading `+'
  75.     only if we haven't seen `--'.
  76.  
  77.     * tr.c (main): Change variable name to avoid shadowed dcl.
  78.     * wc.c (write_counts): Ditto.
  79.  
  80.     * sum.1: Make documentation agree with the code.
  81.  
  82.     * od.c: Depend only on HAVE_LONG_DOUBLE for long double support.
  83.  
  84. Fri Apr 30 20:16:03 1993  Jim Meyering  (meyering@comco.com)
  85.  
  86.     * configure.in [AC_HAVE_HEADERS]: Add limits.h.
  87.  
  88.     * configure.in [CFLAGS, LDFLAGS]: Assign reasonable defaults.
  89.  
  90.     * od.c (parse_old_offset): Don't use prototype in function
  91.     definition.  Remove unnecessary conjunct from test for hexadecimal
  92.     prefix.
  93.  
  94.     * od.c: Depend on __GNUC__ || HAVE_LONG_DOUBLE rather than __STDC__
  95.     for long double support;  there are compilers (Stardent Vistra svr4)
  96.     without long double but still define __STDC__.
  97.  
  98. Thu Apr 29 02:01:27 1993  Jim Meyering  (meyering@comco.com)
  99.  
  100.     * src/*.c and man/*.c except for sort: Add --help and --version
  101.     options.
  102.  
  103.     * pr.c: Convert to use getopt_long.
  104.  
  105.     * lib/memcmp.c: Use version from glibc.
  106.     [WORDS_BIGENDIAN]: Test this instead of the using glibc's
  107.     __BYTE_ORDER macro.
  108.     * configure.in: Use AC_WORDS_BIGENDIAN to set it.
  109.  
  110.     * od.c (parse_old_offset): Allow `0X' as well as `0x' prefix to
  111.     indicate hex.
  112.  
  113.     * Makefile.in (dist): Depend on Makefile so that changes to
  114.     Makefile.in (like adding new files to DISTRIB) are reflected
  115.     in the new distribution.
  116.  
  117. Fri Apr 23 21:53:47 1993  Jim Meyering  (meyering@comco.com)
  118.  
  119.     * {lib,src}/Makefile.in [.c.o]: Make CPPFLAGS and CFLAGS follow
  120.     other options so users can use them to override DEFS.
  121.     * src/Makefile.in [.c.o]: Add -I$(srcdir) for version.h.
  122.  
  123.     * Makefile.in [CFLAGS, LDFLAGS]: Don't set to -g explicitely;
  124.     configure's AC_SUBST will set these.
  125.  
  126.     * Makefile.in [Makefile]: Add dependencies and a rule to remake it.
  127.     [targets that cd then run make in subdirectories]: Don't depend
  128.     on `cd ..';  use a subshell instead.
  129.  
  130.     * Makefile.in [info, install-info, dvi, check, installcheck]:
  131.     New targets but no rules; comply with standards.
  132.  
  133.     * configure.in [CFLAGS]: Default to -g -O if CC is gcc and the user
  134.     hasn't specified CFLAGS.
  135.     [LDFLAGS]: Substitute into Makefile.
  136.  
  137. Tue Mar 30 21:36:11 1993  Jim Meyering  (meyering@comco.com)
  138.  
  139.     * od.c: New option --compatible, -C.
  140.     (parse_old_offset): New function.
  141.     * od.1: Document new option.
  142.  
  143. Mon Mar 29 21:27:56 1993  Jim Meyering  (meyering@comco.com)
  144.  
  145.     * cut.c, expand.c, join.c, nl.c: Always call error with errno
  146.     (not zero) after failed fclose or non-zero ferror.
  147.  
  148. Sun Mar 28 16:59:31 1993  Mike Haertel  (mike@cs.uoregon.edu)
  149.  
  150.     * configure.in: Add check for working memcmp; use GNU's if
  151.     the system's doesn't grok the 8th bit.
  152.     * memcmp.c: Fix it so it groks the 8th bit.
  153.     TODO: We really need to provide a fast memcmp, since most
  154.     machines will have a broken memcmp.  Probably should get
  155.     the one from glibc.
  156.     * sort.c (mergefps): Maintain keybeg and keylim when copying
  157.     the current line to `saved'.
  158.     (numcompare): Skip white space here since -n no longer implies -b.
  159.     (getmonth): Skip white space here since -M no longer implies -b.
  160.     (compare): Completely overhauled to make the 8th bit work right,
  161.     also to properly handle the global reverse option.
  162.     (set_ordering): -n no longer implies -b, according to Posix.
  163.     For consistency, -M also no longer implies -b.
  164.     (main): Correct treatment of -r and global keys.
  165.     (findlines): Clear keybeg and keylim if no keys are used.
  166.     (sort): Avoid overwriting tempfiles[] array bounds.
  167.  
  168. Sun Mar 21 22:29:29 1993  Jim Meyering  (meyering@comco.com)
  169.  
  170.     * pr.c (close_file): Reverse May 13, '92 change, but add the condition
  171.     that cols_ready_to_print not be decremented when printing across.
  172.     The command `echo |pr -2ta' didn't terminate.
  173.     (print_page): Rewrite conditional (that had side effects in second
  174.     conjunct) using nested if statements to make it clear that we do
  175.     indeed want those semantics.
  176.  
  177. Tue Jan 19 13:35:24 1993  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
  178.  
  179.     * Version 1.4.
  180.  
  181.     * system.h: Try BBSIZE if BSIZE isn't defined.
  182.     From Tony Robinson <ajr@eng.cam.ac.uk>.
  183.  
  184. Sat Dec 12 12:37:00 1992  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
  185.  
  186.     * tail.c (tail_forever): Use an array of file descriptors
  187.     instead of forking processes.
  188.     (dump_remainder): Return number of bytes read.
  189.     (tail_file): Fill in the new array.
  190.     From Ian Lance Taylor.
  191.  
  192. Fri Dec 11 17:18:16 1992  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
  193.  
  194.     * system.h: Only define index, bcmp, etc. if not already defined.
  195.  
  196. Tue Dec  8 10:31:14 1992  Jim Meyering  (meyering@idefix.comco.com)
  197.  
  198.     * tr.c (is_char_class_member): Remove unreached return after abort.
  199.  
  200. Sun Dec  6 22:34:52 1992  Jim Meyering  (meyering@idefix.comco.com)
  201.  
  202.     * csplit, cut.c, expand.c, fold.c, head.c, join.c, od.c, pr.c,
  203.     sort.c, split.c, tail.c, tr.c, unexpand.c, uniq.c:  Remove inclusion
  204.     of <ctype.h> and definitions of is* ctype macros to system.h.
  205.     Change a few more uses of is* ctype macros to (protected) upper
  206.     case versions.
  207.  
  208.     * system.h: Add isascii-protected ctype IS* macros.
  209.  
  210. Wed Dec  2 12:28:10 1992  Jim Meyering  (meyering@idefix.comco.com)
  211.  
  212.     * all files using getopt.h: Convert static declarations of
  213.     struct option to use new macros from getopt.h: no_argument,
  214.     required_argument, and optional_argument.
  215.  
  216. Tue Dec 01 10:57:24 1992  Jim Meyering  (meyering@idefix.comco.com)
  217.  
  218.     * od.c, pr.c, sort.c: Make uses of ctype.h macros consistent.
  219.  
  220.     * tr.c (main): Close stdin and stdout and check return status.
  221.  
  222. Tue Nov 24 09:26:08 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  223.  
  224.     * system.h, csplit.c: Use HAVE_FCNTL_H and HAVE_STRING_H
  225.     instead of USG.
  226.  
  227. Tue Nov 24 08:42:30 1992  Jim Meyering  (meyering@idefix.comco.com)
  228.  
  229.     * tr.c: Define new macros ISPRINT, ISALNUM, ISXDIGIT, ... that
  230.     use isascii if it is defined.
  231.     (is_char_class_member, make_printable_char, make_printable_str,
  232.     non_neg_strtol): Use new macros instead of lower case ones
  233.     from <ctype.h>.
  234.  
  235.     * od.c (print_ascii, dump_strings): Use ISDIGIT and ISPRINT
  236.     macros like pr.c.  Suggested by David J. MacKenzie.
  237.  
  238.     * od.c (print_ascii, dump_strings): Check for isascii before isprint.
  239.     (dump_strings): Free malloc'd buffer before returning.
  240.     (skip): Return non-zero if an error occurred, zero otherwise.
  241.     Exit only if asked to skip beyond end of combined input.
  242.     (check_and_close): New function.
  243.     (skip, read_block, read_char): Call check_and_close when done
  244.     processing the file associated with in_stream.
  245.     (skip, read_block, read_char): Set have_read_stdin.
  246.     (main): Close stdin (if it was ever read) and check for errors
  247.     just before exiting.
  248.     (write_block, dump_strings, dump): Don't test return value from
  249.     functions that operate on streams.  Rely on later ferror tests.
  250.  
  251. Sat Nov 21 12:41:49 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  252.  
  253.     * sort.c (main, usage): Add -T option.
  254.  
  255. Thu Nov 19 14:33:40 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  256.  
  257.     * tail.c (tail_forever, sigusr1, kill_kids): New functions to
  258.     do -f on multiple files.
  259.     (main): Call tail_forever.
  260.     From Ian Lance Taylor.
  261.  
  262. Tue Nov 10 14:29:11 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  263.  
  264.     * cut.c (cut_fields): Add cast.
  265.  
  266.     * od.c (decode_one_format): Remove '#' from pre_fmt_string;
  267.     many systems don't support it.
  268.     Conditionalize long double support on __STDC__, not __GNUC__.
  269.     From Ian Lance Taylor.
  270.  
  271. Mon Nov  9 00:24:41 1992  Jim Meyering  (meyering@idefix.comco.com)
  272.  
  273.     * sort.c (numcompare, keycompare): Add parentheses suggested
  274.     by gcc -Wall.  Put braces around individual monthtab initializers.
  275.  
  276.     * cksum.c: Declare error.  Make checksum table `const.'
  277.  
  278.     * pr.c: Remove comment and dcl of unused variable, `print_a_number'.
  279.  
  280.     * split.c (main): Add `default: abort();' to enumeration switch.
  281.  
  282.     * All files: Make all functions and extern variables static.
  283.     Make all longopts arrays const as well as static.
  284.     Make a couple statically initialized aggregates `const.'
  285.  
  286. Sun Nov  8 19:46:59 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  287.  
  288.     * od.c (main): Make old-style format options accumulate.
  289.     From Jim Meyering.
  290.  
  291. Sat Nov  7 00:26:14 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  292.  
  293.     * tr.c (look_up_char_class): Add cast.
  294.  
  295.     * nl.c (build_type_arg), csplit.c (extract_regexp), tac.c (main):
  296.     Add `const' to variable receiving value from re_compile_pattern.
  297.  
  298.     * wc.c (wc): If doing only -c, use st_size for regular files.
  299.  
  300.     * fold.c (fold_file): Was folding 1 column too early.
  301.     From Eric Backus <ericb@lsid.hp.com>.
  302.  
  303.     * memset.c: New file.
  304.  
  305. Fri Nov  6 20:14:51 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  306.  
  307.     * cksum.c: New file.
  308.  
  309. Tue Oct 13 16:24:06 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  310.  
  311.     * tac.c (tac_stdin): Handle SIGPIPE.
  312.     * sort.c (main): Handle SIGTERM.
  313.  
  314.     * od.c: New file.
  315.  
  316.     * system.h [USG || STDC_HEADERS]: Define bcmp.
  317.  
  318. Sat Oct  3 20:41:24 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  319.  
  320.     * sort.c (main): Handle SIGPIPE.  From trq@dionysos.thphys.ox.ac.uk.
  321.  
  322. Tue Sep 29 01:10:05 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  323.  
  324.     * paste.c (main): Don't write on a string constant.
  325.  
  326. Mon Aug 24 00:02:45 1992  Jim Meyering  (meyering@churchy.gnu.ai.mit.edu)
  327.  
  328.     * tr.c: Minor cleanup.  Replaced some assert(0) with abort().
  329.  
  330. Tue Jul  7 02:14:19 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  331.  
  332.     * cmp.c, cmp.1: Move to diff distribution.
  333.  
  334. Fri Jul  3 16:37:59 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  335.  
  336.     * system.h: Change FOO_MISSING to HAVE_FOO.
  337.  
  338. Wed May 13 20:05:41 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  339.  
  340.     * pr.c (COLUMN): Add structure member to remember filename.
  341.     (main, init_fps, open_file, close_file): Use it.
  342.  
  343.     (close_file): Don't decrement cols_ready_to_print when closing
  344.     a file.  From cdl@mpl.UCSD.EDU (Carl Lowenstein).
  345.  
  346. Mon May 11 19:17:33 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  347.  
  348.     * cmp.c: --show-chars -> --print-chars.
  349.  
  350.     * pr.c: Rename some variables.
  351.  
  352. Sat May  9 18:39:47 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  353.  
  354.     * system.h: Define DEV_BSIZE if not defined.
  355.  
  356. Wed Apr 22 02:15:09 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  357.  
  358.     * system.h, tac.c: SIGTYPE -> RETSIGTYPE.
  359.  
  360. Fri Apr 17 10:42:23 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  361.  
  362.     * sort.c (main): Don't stop processing args when we hit "-";
  363.     treat it like a regular filename.
  364.     From ian@airs.com (Ian Lance Taylor).
  365.  
  366.     * pr.c (print_page): Fix off by one line count when ^L is in input.
  367.     From Andreas Schwab (schwab@ls5.informatik.uni-dortmund.de).
  368.  
  369. Mon Apr  6 20:52:29 1992  Jim Meyering  (meyering@churchy.gnu.ai.mit.edu)
  370.  
  371.     * tr.c (validate): Change error message so it doesn't mention
  372.     actual name of --truncate-set1 option.  From David MacKenzie.
  373.  
  374. Sun Apr  5 14:22:42 1992  Jim Meyering  (meyering@hal.gnu.ai.mit.edu)
  375.  
  376.     * tr.c (string2_extend, validate): Give an error message when
  377.     translating without --truncate-set1, with empty string2, and
  378.     with non-empty string1.  "tr 1 ''" produced a failed assertion.
  379.  
  380. Mon Mar 30 02:20:56 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  381.  
  382.     * system.h: Change how ST_BLKSIZE is calculated to allow for
  383.     non-POSIX systems that don't define BSIZE in sys/param.h.
  384.  
  385. Sat Mar 28 11:18:01 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  386.  
  387.     * sum.c (main, bsd_sum_file): Don't print filename if BSD
  388.     algorithm is used and only one file was given.
  389.  
  390. Wed Mar 25 11:34:41 1992  Jim Meyering  (meyering@wombat.gnu.ai.mit.edu)
  391.  
  392.     * tr.c (get_spec_stats): Fix assertion to allow ranges like a-a
  393.     with starting character equal to ending character.  This is
  394.     contrary to the POSIX spec, but what is already implemented
  395.     in find_closing_delim.
  396.  
  397. Mon Mar 16 00:15:11 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  398.  
  399.     * Version 1.3.
  400.  
  401.     * sort.c (numcompare, checkfp): Add parens to placate gcc2.
  402.  
  403.     * sort.c (mergefps): For -u, output the first, not last, of
  404.     the lines that compare equal.  From Mike Haertel.
  405.  
  406. Tue Mar 10 10:51:38 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  407.  
  408.     * tr.c: Remove initial capitals and periods from error messages.
  409.  
  410. Sun Mar  8 22:03:45 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  411.  
  412.     * sum.c (main): Add -r option for SYSV compat.
  413.  
  414. Thu Feb 27 22:26:25 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  415.  
  416.     * sort.c (compare): If -s given, leave lines in their original order.
  417.     (main): Recognize -s.
  418.     (usage): Document -s.
  419.     From Mike Haertel.
  420.  
  421. Tue Feb 18 20:29:45 1992  Randall Smith  (randy at geech.gnu.ai.mit.edu)
  422.  
  423.     * sort.c (sort): Check for complete parsing of buffer into
  424.     lines before nixing temp files.
  425.  
  426. Mon Feb 17 10:35:58 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  427.  
  428.     * sum.c (sysv_sum_file): Use %lu instead of %u to print a
  429.     long.  Not that it matters for GNU . . .    
  430.  
  431.     * tr.c (unquote, make_printable_str): Use \007 instead of ANSI \a.
  432.     (append_normal_char, append_range, append_char_class,
  433.     append_repeated_char, append_equiv_class, spec_init):
  434.     Initialize `next' field of new `struct List_element'.
  435.     From rommel@informatik.tu-muenchen.de (Kai-Uwe Rommel).
  436.  
  437. Sat Feb  8 17:16:49 1992  David J. MacKenzie  (djm at apple-gunkies.gnu.ai.mit.edu)
  438.  
  439.     * join.c (get_line): Renamed from getline to avoid GNU libc conflict.
  440.  
  441. Sun Feb  2 21:22:01 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  442.  
  443.     * Version 1.2.
  444.  
  445.     * nl.c: Support multiple files and "-" for stdin.
  446.     (main): Check for read and write errors.
  447.     (nl_file): New function.
  448.  
  449. Wed Jan 29 10:09:10 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  450.  
  451.     * tr.c (main): -t option was called -b in getopt spec.
  452.     (validate): Don't warn that set1 is longer than set2.
  453.  
  454.     * tr.c: Rename --sysv-string2-truncate to --truncate-string1.
  455.  
  456. Fri Jan 17 16:29:05 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  457.  
  458.     * nl.c: New program from bin-src.
  459.  
  460.     * nl.c (main): Use a struct linebuffer for line_buf.
  461.     (process_file): Use readline instead of fgets, to preserve NULs.
  462.     (check_section): Use memcmp instead of strncmp.
  463.     (proc_text): Print line_buf with fwrite instead of printf.
  464.  
  465.     * nl.c (main): Usage message if too many args given.  Check
  466.     for error in closing input file.  Lengths of section delimiter
  467.     strings were 1 too large.  Take separator_str into account in
  468.     length of print_no_line_fmt.
  469.     (build_print_fmt): Allocate space for print_fmt, in case
  470.     separator_str is long.
  471.     (proc_text): A blank line is one that contains nothing, not
  472.     even nonprinting characters.
  473.  
  474. Fri Jan 17 01:04:22 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  475.  
  476.     * All programs: Document `--' instead of `+' to introduce
  477.     long-named options, in usage messages.
  478.  
  479.     * sum.c (bsd_sum_file): Renamed from sum_file.
  480.     (sysv_sum_file): New function.
  481.     (main): Recognize an option to select between the algorithms.
  482.  
  483. Sun Jan  5 17:41:18 1992  Jim Meyering (meyering at churchy.gnu.ai.mit.edu)
  484.  
  485.     * pr.c (close_file, print_page): Fixed bug that had the command
  486.     yes |head |pr -t printing "yyyyyyyyyy".
  487.     * (print_page): Fixed bug that had pr -3 -a printing two too few
  488.     trailer lines per page.
  489.     * (main): Added restriction that -a and -m are incompatible.
  490.     Although the POSIX spec doesn't explicitly say they shouldn't
  491.     be used together, it says -a modifies the -column option and
  492.     that -column shouldn't be used with -m.
  493.  
  494. Thu Jan  2 15:23:59 1992  David J. MacKenzie  (djm at albert.gnu.ai.mit.edu)
  495.  
  496.     * nl.c: Include regex.h after, not before, sys/types.h.
  497.  
  498. Thu Jan  2 12:18:10 1992  Tom Lord  (lord at geech.gnu.ai.mit.edu)
  499.  
  500.     * sort.c (fillbuf) return bytes buffered instead of bytes read.
  501.  
  502. Fri Dec 27 22:53:36 1991  Jim Kingdon  (kingdon at geech.gnu.ai.mit.edu)
  503.  
  504.     * sort.c (LINEALLOC): New #define.
  505.     (struct lines): New field ``limit''.
  506.     (initlines): Set it from new arg ``limit''.
  507.     (sort, mergefps, checkfp): Pass new arg to initlines().
  508.     (findlines): Don't realloc past lines->limit.
  509.  
  510. Tue Dec 24 01:24:03 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  511.  
  512.     * tac.c, sort.c, csplit.c, system.h: Change POSIX ifdefs to
  513.     HAVE_UNISTD_H and _POSIX_VERSION.
  514.  
  515.     * xwrite.c: Change POSIX ifdef to HAVE_UNISTD_H.
  516.  
  517. Sat 14 Dec 1991 11:46:42  Jim Meyering  (meyering at wombat)
  518.  
  519.     * tr.c: Fixed an inaccurate comment on posix_pedantic.
  520.  
  521. Thu 12 Dec 1991 21:15:20  Jim Meyering  (meyering at hal)
  522.  
  523.     * tr.c: Changed underscores to hyphens in long option name
  524.     "sysv_string2_truncate".
  525.  
  526. Wed Dec 11 13:33:34 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  527.  
  528.     * tac.c (main): Set obscure_syntax to tell re_search to
  529.     allocate memory for the group registers.
  530.  
  531. Fri Dec  6 18:26:27 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  532.  
  533.     * tac.c, sort.c, csplit.c [POSIX]:  Use sigaction instead of
  534.     signal, which POSIX doesn't have.
  535.     * sort.c: Replace inthandler and huphandler with sighandler.
  536.     * csplit.c (main): Only handle signals if they were not being
  537.     ignored.
  538.  
  539.     * tr.c: POSIX_ME_HARDER -> POSIXLY_CORRECT.
  540.  
  541. Wed Dec  4 00:47:47 1991  Jim Meyering  (meyering at wombat)
  542.  
  543.     * tr.c (unquote): Reformat code so it doesn't go beyond column 80.
  544.     * tr.c (squeeze_filter): Comment a little on why it's better
  545.     to step through the input by two.
  546.     * tr.c (set_initialize): Write a comment describing the function.
  547.     * tr.c: Eliminated the variable `portability_warnings' and replaced
  548.     references to it by references to `!posix_pedantic'.  One of the
  549.     uses of portability_warnings had been wrong.
  550.  
  551. Tue Dec  3 14:03:35 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  552.  
  553.     * tr.c: New program.
  554.  
  555. Sun Dec  1 15:07:35 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  556.  
  557.     * linebuffer.[ch] (freebuffer): New function (used by cron).
  558.  
  559. Thu Oct 17 22:30:22 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  560.  
  561.     * system.h, configure, Makefile.in: Don't include memory.h if
  562.     STDC_HEADERS, removing need for MEMORY_H_MISSING.
  563.  
  564. Thu 17 Oct 1991 16:53:07  Jim Meyering  (meyering at wombat)
  565.  
  566.     * pr.c (print_page): REALLY fixed `extra newline at EOF' problem.
  567.     Somehow, part of my patch didn't make it last time.
  568.  
  569. Sat Oct 12 12:04:47 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
  570.  
  571.     * tail.c (pipe_lines, pipe_bytes): Initialize `first->next'.
  572.  
  573.     * cmp.c (cmp): Print EOF message to stderr, not stdout, for
  574.     POSIX 1003.2.11.2.
  575.  
  576.     * sort.c (xfwrite): fwrite never returns < 0, so check if
  577.     number written is number we asked to write.
  578.     (fillbuf, main): fread never returns < 0, so check ferror instead.
  579.     From Rainer Orth.
  580.  
  581. Tue Oct  8 18:07:08 1991  Jim Meyering  (meyering at churchy)
  582.  
  583.     * pr.c (print_page): Really fixed `extra newline at EOF' problem.
  584.     * (store_columns): Fixed bug that caused `pr -b -2' to coredump
  585.     on files of certain lengths.
  586.  
  587. Fri Oct  4 22:30:25 1991  Jim Meyering  (meyering at churchy)
  588.  
  589.     * pr.c (print_page): Fixed to not add single spurious newline
  590.     at EOF when using -t.
  591.  
  592. Wed Oct  2 01:02:05 1991  David J. MacKenzie  (djm at apple-gunkies)
  593.  
  594.     * pr.c (print_page): Don't pad the page if -t given.
  595.  
  596.     * csplit.c (load_buffer), sort.c (mergefps): Use bcopy, not memcpy.
  597.  
  598. Thu Sep 26 12:35:00 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
  599.  
  600.     * Version 1.1.
  601.  
  602.     * configure, system.h: Include memory.h if it works.
  603.  
  604.     * split.c: Allow `b' unit as well as `k' and `m'.
  605.  
  606.     * head.c, tail.c: Replace -b +blocks option with specifying
  607.     units (b, k, or m) after the number.
  608.     (parse_unit): New function.
  609.  
  610.     * fold.c (main): Check that -w arg is a number.
  611.  
  612.     * cut.c: +delimiter takes an arg.
  613.  
  614. Mon Sep 16 14:52:38 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
  615.  
  616.     * pr.c (close_file): Don't close an already closed file.
  617.  
  618. Thu Sep 12 00:14:43 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  619.  
  620.     * memchr.c: New file.
  621.     * configure: Check if it's needed.
  622.  
  623.     * csplit.c, gcsplit.1: New program.
  624.  
  625.     * pr.c (cleanup): Only free buffers if they were allocated.
  626.  
  627.     * sort.c [!USG && !STDC_HEADERS]: Declare memchr.
  628.  
  629. Wed Sep 11 20:54:16 1991  Jim Meyering  (meyering at churchy)
  630.  
  631.     * pr.c: The following 3 bugs appeared (at least) when printing
  632.     a  single file with the options `-3 -f'.
  633.     * (print_white_space): Single spaces were being replaced
  634.     with tabs.
  635.     * (print_page): Some lines were getting too much white space
  636.     at the beginning because spaces_not_printed wasn't being reset
  637.     to 0.
  638.     * (read_line): The single space between a truncated column
  639.     on its left and the column on its right was omitted.  Fixed
  640.     so that previous value of input_position is restored before
  641.     returning FALSE.
  642.  
  643. Sat Sep  7 03:22:18 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  644.  
  645.     * configure: Only remove /etc from PATH when it's not part of
  646.     a larger name.
  647.  
  648. Wed Sep  4 17:09:24 1991  David J. MacKenzie  (djm at apple-gunkies)
  649.  
  650.     * linebuffer.c (readline): Fix incorrect recalculation of `end'.
  651.  
  652.     * head.c, tail.c: Replace `mode' variables and bitmasks with
  653.     separate variables for each option.
  654.  
  655. Mon Sep  2 04:00:37 1991  David J. MacKenzie  (djm at apple-gunkies)
  656.  
  657.     * wc.c: New program.
  658.  
  659. Sun Sep  1 01:18:38 1991  David J. MacKenzie  (djm at apple-gunkies)
  660.  
  661.     * fold.c (fold_file): Read in an int, not a char, for EOF
  662.     comparison. 
  663.  
  664.     * configure: Check whether st_blksize is missing.
  665.  
  666.     * tac.c (save_stdin): Put copy of pipe input in TMPDIR if
  667.     defined, instead of /tmp.
  668.  
  669. Thu Aug 29 14:48:15 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  670.  
  671.     * xwrite.c [POSIX]: unistd.h might require sys/types.h.
  672.  
  673. Wed Aug 28 11:57:39 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  674.  
  675.     * paste.c (main): Consider -d "" to be like -d "\0",
  676.     for POSIX (if I read it right).
  677.  
  678.     * sort.c, join.c: New programs.
  679.  
  680.     * cut.c (set_field): Allow blanks as well as commas to
  681.     separate numbers in ranges.
  682.  
  683. Sun Aug 25 19:57:40 1991  Jim Meyering  (meyering at apple-gunkies)
  684.  
  685.     * pr.c: Failure to open an input file is no longer a fatal error.
  686.     A message is printed for each failed open.  When printing
  687.     in parallel, each failed open results in one fewer output column.
  688.     Added POSIX -r option to suppress the message.
  689.     * pr.c: Added variables: failed_opens, ignore_failed_opens.
  690.         These changes were based in part on work by David MacKenzie.
  691.  
  692. Sat Aug 24 15:27:39 1991  Jim Meyering  (meyering at pogo)
  693.  
  694.     * pr.c: Complain if user gives both -m and -[0-9]+ options.
  695.  
  696. Wed Aug 21 22:04:57 1991  David J. MacKenzie  (djm at apple-gunkies)
  697.  
  698.     * Version 1.0.
  699.  
  700. Mon Aug 19 00:16:51 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  701.  
  702.     * expand.c: Rename some variables.
  703.     (expand): Don't access value off end of array.
  704.     * unexpand.c: Rename some variables.
  705.     (unexpand): Don't access value off end of array.
  706.     Instead of copying tabs verbatim and flushing pending spaces
  707.     when one is reached, count them as the proper number of
  708.     pending spaces.  Instead of changing tabs to single spaces if
  709.     the tabstop list is exhausted, print the rest of the line
  710.     unchanged (for POSIX).
  711.  
  712. Sat Aug 17 01:49:41 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  713.  
  714.     * cut.c (cut_file), paste.c (paste_parallel, paste_serial):
  715.     Clear EOF and error conditions on stdin so it can be reused.
  716.  
  717.     * expand.c, unexpand.c (parse_tabstops): Allow blanks as well
  718.     as commas to separate tabstops, for POSIX.
  719.     * expand.c (expand), unexpand.c (unexpand): Don't line-buffer
  720.     the output; send it directly to stdout.
  721.     * unexpand.c (main): Make -t stupidly imply -a for POSIX.
  722.     (unexpand): If a tab stop list was given and we move past its end,
  723.     copy the rest of the line verbatim.
  724.  
  725.     * split.c (convint): New function to allow 'm' and 'k' after
  726.     byte counts.
  727.     (main): Use it.  Change -c option to -b for POSIX.
  728.  
  729. Fri Aug  9 02:47:02 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  730.  
  731.     * pr.c: Protect isdigit with isascii, if required.
  732.  
  733. Tue Aug  6 21:42:25 1991  David J. MacKenzie  (djm at wheat-chex)
  734.  
  735.     Most of the following is from Paul Eggert:
  736.     * cat.c (main): If stdin is read, check close at end.
  737.     * cmp.c (main): Check for stdin being closed.
  738.     Check for close errors on stdin and stdout.
  739.     (cmp): Return a value instead of exiting.
  740.     * cut.c (cut_file): New function, from code in main.
  741.     Check for read errors.
  742.     (main): Check for close errors.
  743.     * expand.c, unexpand.c (main): Check for close errors.
  744.     (next_file): Go to next file if one can't be opened.
  745.     Check for close errors.
  746.     * head.c (main), tail.c (main): If stdin was read, check for
  747.     close errors.
  748.     * head.c (head_file), tail.c (tail_file): Check for close errors.
  749.     * paste.c (main, paste_parallel, paste_serial), tac.c (main):
  750.     Check for close errors.  Close stdin if it was read.
  751.     * split.c (main): Check for close errors.
  752.  
  753.     * configure, Makefile.in's: Support +srcdir option.
  754.     Make config.status.  Fix up clean targets.
  755.  
  756. Wed Jul 31 01:32:59 1991  David J. MacKenzie  (djm at hal)
  757.  
  758.     * linebuffer.h (struct linebuffer): Add a field to indicate
  759.     the number of valid chars in the line.
  760.     * linebuffer.c (initbuffer, readline): Fill it in.
  761.     * uniq.c, comm.c: Use it.
  762.  
  763.     * pr.c (main): Check stdin and stdout fclose for errors.
  764.     (init_parameters): If there's no room for header and footer,
  765.     omit them rather than dying (for POSIX).
  766.     (init_header): Take a file descriptor as additional arg.
  767.     (init_fps): Change callers.  Note when stdin is read.
  768.     (open_file): For filename "-" use stdin.
  769.     (close_file): Don't close stdin.  Check close for errors.
  770.     (print_char, char_to_clump): Use isprint instead of explicit
  771.     comparisons.
  772.  
  773.     * memcmp.c: New file (needed for comm).
  774.     * bcopy.c: New file (needed for fold).
  775.     * system.h: Don't define bcopy as memcpy.
  776.     * configure: Check for bcopy and memcmp.
  777.  
  778.     * uniq.c (main): Use "-" instead of NULL to mean stdin or
  779.     stdout.
  780.     (check_file): Use "-" instead of NULL to mean stdin or stdout.
  781.     Check readline return instead of for NUL character to
  782.     detect eof.
  783.     Check fclose for errors.
  784.     (find_field): Use linebuffer length, not NULs, to detect end
  785.     of line.
  786.     (different): New function, replaces compare.  Uses memcmp
  787.     instead of strncmp.
  788.     (writeline): Use fwrite instead of fputs so NULs are preserved.
  789.  
  790.     * comm.c (compare_files): Return an error indication.
  791.     Don't take a filename of NULL to mean stdin.
  792.     Use memcmp instead of strcmp to allow for NULs.
  793.     Check fclose for errors.
  794.     (writeline): Use fwrite instead of fputs so NULs are preserved.
  795.  
  796.     * sum.c (sum_file): Take an arg indicating whether to print
  797.     the filename, and don't take NULL meaning stdin.  Set a flag
  798.     when we read stdin.  Check fclose return for errors.
  799.     (main): If stdin was read, check fclose return for errors.
  800.     Use filename of "-" if no args given.
  801.  
  802. Thu Jul 25 15:17:10 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  803.  
  804.     * fold.c: Rewritten from scratch for POSIX.
  805.  
  806. Wed Jul 24 01:55:41 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  807.  
  808.     * split.c (line_bytes_split): Use xmalloc instead of alloca.
  809.     * system.h: Don't declare alloca.
  810.  
  811.     * tac.c, tail.c: Use SEEK_ instead of L_ for lseek.
  812.     * system.h: Define SEEK_ macros if not defined.
  813.  
  814.     * pr.c: Rename variable `truncate' to avoid library function conflict.
  815.  
  816. Tue Jul 23 13:21:48 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  817.  
  818.     * linebuffer.c, linebuffer.h: New files.
  819.     * comm.c, uniq.c (initbuffer, readline): Functions
  820.     removed (use versions in linebuffer.c).
  821.  
  822. Mon Jul 22 13:23:53 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  823.  
  824.     * sum.c (sumfile): Always print 5 digits for second number, too.
  825.     Interpret "-" to mean stdin.
  826.  
  827. Sat Jul 20 14:24:40 1991  David J. MacKenzie  (djm at bleen)
  828.  
  829.     * uniq.c: Use isblank instead of isspace, to support POSIX.2.
  830.     * comm.c, pr.c, uniq.c (concat, fatal, error,
  831.     pfatal_with_name, xmalloc, xrealloc): Functions removed.
  832.  
  833. Sat Jul 13 02:04:53 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  834.  
  835.     * nl.c: Add long-named options.  Doc fixes.
  836.  
  837. Sat Jul  6 02:19:09 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  838.  
  839.     * expand.c, unexpand.c [STDC_HEADERS]: Include stdlib.h.
  840.  
  841.     * xwrite.c [POSIX]: Include unistd.h.
  842.     [STDC_HEADERS]: Don't declare errno.
  843.  
  844. Sun Jun 30 23:35:16 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  845.  
  846.     * uniq.c: Add long-named options.  Remove marginally useful -z
  847.     option (zero padded repeat counts).
  848.  
  849. Thu Jun 27 16:31:45 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  850.  
  851.     * tail.c (tail_file), tac.c (save_stdin, tac_file), split.c
  852.     (cwrite), head.c (head_file), cat.c (main): Check close return
  853.     value for delayed error report due to NFS.
  854.  
  855. Tue Jun 11 00:12:15 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  856.  
  857.     * cat.c: Replace "uchar" with "unsigned char", to avoid
  858.     problems with various systems' typedefs.
  859.  
  860. Thu Jun  6 12:54:26 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  861.  
  862.     * cat.c (cat): Interpret ENOTTY return from FIONREAD ioctl to mean
  863.     operation is unsupported, for HP-UX 7.0.
  864.  
  865. Sun Apr 14 21:49:17 1991  Richard Stallman  (rms at mole.gnu.ai.mit.edu)
  866.  
  867.     * sum.c: Always print five digits for first number.
  868.  
  869. Fri Mar 15 16:16:54 1991  David J. MacKenzie  (djm at geech.ai.mit.edu)
  870.  
  871.     * cat.c, cmp.c: Don't use fileno(); not needed.
  872.  
  873. Thu Jan 10 02:16:55 1991  David J. MacKenzie  (djm at albert.ai.mit.edu)
  874.  
  875.     * tac.c, tail.c: Change _POSIX_SOURCE to POSIX.
  876.  
  877. Thu Dec 27 00:06:45 1990  David J. MacKenzie  (djm at egypt)
  878.  
  879.     * cut.c (cut_file_bytes, cut_file_fields): Make inbufp and
  880.     outbufp global.
  881.     (enlarge_line): Adjust inbufp and outbufp.
  882.  
  883. Sun Sep  9 16:54:19 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  884.  
  885.     * cat.c: Declare free returning void, not int, so it
  886.     doesn't bomb on Xenix.
  887.  
  888. Mon Sep  3 22:23:57 1990  David J. MacKenzie  (djm at coke)
  889.  
  890.     * tac.c: Print error messages before calling cleanup, not after.
  891.  
  892. Tue Aug 28 18:05:24 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  893.  
  894.     * tac.c (cleanup): Return SIGTYPE, not int.
  895.  
  896. Tue Aug  7 12:51:18 1990  David J. MacKenzie  (djm at apple-gunkies)
  897.  
  898.     * cut.c (main, usage): Add -b and -n options for POSIX.
  899.     (set_fields): Don't allow SPC or TAB as number separators.
  900.  
  901.     * paste.c (paste_parallel): If open of any file fails, quit
  902.     (for POSIX).
  903.  
  904. Mon Aug  6 22:14:13 1990  David J. MacKenzie  (djm at apple-gunkies)
  905.  
  906.     * pr.c: Add POSIX -F option (same as -f).
  907.  
  908.     * uniq.c (check_file): Allow '-' to mean stdin or stdout.
  909.  
  910. Mon Aug  6 14:43:30 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  911.  
  912.     * head.c, tail.c: Change `chars' to `bytes' globally.
  913.     (main, usage): Use POSIX.2 draft 10 option syntax.
  914.  
  915. Sun Aug  5 11:51:12 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  916.  
  917.     * cat.c (main): Don't delay error messages, so they appear
  918.     where expected.
  919.     (main, simple_cat, cat): Make errors in input files nonfatal.
  920.  
  921. Sat Aug  4 10:11:30 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  922.  
  923.     * cat.c: Remove -c option added for POSIX draft 9, since POSIX
  924.     draft 10 removed it. 
  925.  
  926.     * tac.c (tac_stdin): Use fstat instead of lseek to determine
  927.     whether stdin is seekable, because lseek silently fails on
  928.     some special files, like tty's.
  929.     tail.c (tail_chars, tail_lines): Use fstat instead of lseek;
  930.     don't turn off -f for non-regular files (assume the user knows
  931.     what he's doing; it might work for fifo's and sockets).
  932.  
  933.     * paste.c (main): If no files given, use stdin.
  934.     Don't let collapse_escapes write on string constant (delim default).
  935.     (paste_parallel): Don't close stdin.
  936.  
  937.     * cut.c (main): Use standard input for filename of "-".
  938.  
  939.     * comm.c (compare_files): Allow '-' to mean stdin.
  940.  
  941. Fri Aug  3 13:38:28 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  942.  
  943.     * cut.c (enlarge_line): Take an arg giving the required amount
  944.     of space.  Change callers.
  945.     (main): Don't allow -t'<TAB>' without -f.
  946.     Make `delim' unsigned to fix sign extension problem in comparison.
  947.  
  948. Tue Jul 17 12:36:11 EDT 1990  Jay Fenlason (hack@ai.mit.edu)
  949.  
  950.     * pr.c  Deleted excess whitespace from ends of lines.
  951.         Modified to work with current version of getopt, which
  952.         returns 1 instead of 0 for non-options.
  953.         Reversed the meaning of the -f option, to be compatable
  954.         with real pr.
  955.  
  956. Sun Jul  8 00:39:31 1990  David J. MacKenzie  (djm at apple-gunkies)
  957.  
  958.     * cmp.c (main, usage): Rename -L option to -c and don't have
  959.     it imply -l. 
  960.     (printc): Take an arg to specify number of chars to pad to,
  961.     for column alignment.
  962.     (cmp): Respect flag_print_chars in default output format.
  963.     Align columns for cmp -cl.
  964.  
  965. Sat Jul  7 17:23:30 1990  David J. MacKenzie  (djm at apple-gunkies)
  966.  
  967.     * cmp.c: For +show-chars, have getopt return 'L' so
  968.     `flag_print_chars' gets set.
  969.  
  970. Fri Jun 29 01:04:19 1990  David J. MacKenzie  (djm at apple-gunkies)
  971.  
  972.     * tac.c (main): Initialize fastmap and translate fields of
  973.     regex before compiling it.
  974.  
  975. Fri Jun 22 00:38:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  976.  
  977.     * tac.c: Change +regexp to +regex for consistency with GNU find.
  978.  
  979. Wed Jun 20 01:46:09 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  980.  
  981.     * cat.c (cat): If FIONREAD is available, only use it if it is
  982.     supported by the filesystem that the file is on.
  983.  
  984. Sun Jun  3 20:26:19 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  985.  
  986.     * cat.c (main): Add a variable to control whether the check
  987.     for input file == output file is made, because no values of
  988.     st_dev and st_ino should be assumed to be available for this
  989.     purpose.  Only do the check for regular files.
  990.  
  991.     * tac.c: Use bcopy instead of memcpy.
  992.  
  993. Thu May 31 00:55:36 1990  David J. MacKenzie  (djm at apple-gunkies)
  994.  
  995.     * head.c: Use longs instead of ints for file offsets, for 16
  996.     bit machines.
  997.  
  998. Tue May 22 00:56:51 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  999.  
  1000.     * cmp.c: Change some ints to longs for 16 bit machines.
  1001.     (bcmp_cnt): Make char-pointer counting slightly simpler.
  1002.  
  1003. Sat May 12 01:16:42 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1004.  
  1005.     * cat.c (main): Allow input file to be output file for devices
  1006.     (ttys, etc.).  Check whether input file is output file when
  1007.     reading standard input.  Print any error messages for standard
  1008.     input. 
  1009.  
  1010.     * cmp.c (bcmp_cnt): Handle int comparisons correctly on 16 bit
  1011.     machines as well as 32 bit ones.
  1012.     * cmp.c, tail.c: Use longs instead of ints for file offsets. 
  1013.  
  1014. Fri May 11 02:11:03 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1015.  
  1016.     * cmp.c: Fix some exit statuses for POSIX.
  1017.  
  1018. Tue May  8 03:41:42 1990  David J. MacKenzie  (djm at abyss)
  1019.  
  1020.     * tac.c: Use regular expressions as the record boundaries.
  1021.     Give better error messages.
  1022.     Reformat code and make it more readable.
  1023.     (main): Use getopt_long to parse options.
  1024.     (tac_stdin): Do not make a temporary file if standard input
  1025.     is a file.
  1026.     (tac_file): New function.
  1027.     (tac): Take an open file desc as an arg.
  1028.     (output): Rewrite to use its own efficient buffering.
  1029.     (xmalloc, xrealloc, xwrite): New functions.
  1030.  
  1031. Sun Apr  8 20:33:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1032.  
  1033.     * head.c, tail.c: Use `error' instead of `fatal_perror' and
  1034.     `nonfatal_perror'.  Remove some unnecessary info from messages.
  1035.  
  1036. Wed Mar 21 09:30:18 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  1037.  
  1038.     * comm.c (main): Pass the list of files to compare_files as a
  1039.     char ** instead of a char *.
  1040.     (compare_files): Make arg a char **.
  1041.  
  1042.     * uniq.c: Declare some functions as void.
  1043.     Change global vars `countmode' and `mode' from ints to enums.
  1044.     (main): Use getopt to parse options and support POSIX options.
  1045.     Don't use integer_arg to parse numbers, since `-#' can't be
  1046.     parsed that way using getopt.
  1047.     (find_field): Use isspace for finding fields boundaries.
  1048.  
  1049. Tue Mar 20 14:28:25 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  1050.  
  1051.     * comm.c (main): Call usage if given bad option or wrong
  1052.     number of args.  Exit with 0 status normally.
  1053.     (usage): New function.
  1054.     Declare some other functions as void.
  1055.  
  1056. Wed Mar 14 10:48:40 1990  David J. MacKenzie  (djm at rice-chex)
  1057.  
  1058.     * cmp.c (main, cmp, usage): Replace -q +quick option with -L
  1059.     +show-chars option to add ASCII representation of bytes to -l format.
  1060.  
  1061. Tue Mar 13 00:50:14 1990  David J. MacKenzie  (djm at rice-chex)
  1062.  
  1063.     * cmp.c (cmp): Change EOF message for POSIX compatibility.
  1064.     For -l format, clear bits > FF.
  1065.  
  1066. Mon Mar  5 17:21:00 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1067.  
  1068.     * tail.c: Move global `errors' into main instead of having
  1069.     nonfatal_perror set it.
  1070.     (tail, tail_chars, tail_file, tail_lines, pipe_chars, pipe_lines):
  1071.     Return an error status.
  1072.     (file_lines, start_chars, start_lines): Reverse the meaning of
  1073.     the return value.
  1074.     (tail_lines, tail_chars): Account for that reversal.
  1075.  
  1076. Mon Mar  5 00:34:36 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1077.  
  1078.     * head.c: Move global `errors' into main and have the various
  1079.     functions return an error status instead of setting it in
  1080.     nonfatal_perror. 
  1081.  
  1082. Sat Mar  3 11:27:27 1990  Torbj|rn Granlund  (tege at echnaton)
  1083.  
  1084.     * cmp.c (cmp): Call function bcmp_cnt for flag == 0 (i.e. no
  1085.       options specified), to compare the two blocks and count
  1086.       newlines simultaneously.
  1087.     * cmp.c New function: bcmp_cnt.
  1088.  
  1089.     * cmp.c (main): Test if output is redirected to /dev/null, and
  1090.       assume `-s' if this is so.
  1091.  
  1092. Tue Feb 20 17:09:19 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1093.  
  1094.     * cat.c: Change `argbad' from a char to a short, so it will
  1095.     work on machines with unsigned chars.
  1096.  
  1097. Sat Feb 10 02:16:40 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  1098.  
  1099.     * cmp.c (cmp): Rename `r' to `first_diff', and `x' to `smaller'.
  1100.     Remove unneccessary variable `c1'.  If -l was given, increase
  1101.     `char_number' by the number of bytes read, after producing output,
  1102.     rather than by the offset of the first differing bytes, before
  1103.     producing output.
  1104.     Replace if-else-if constructions with case statements for clarity.
  1105.     (bcmp2): Rename `n' to `nread'.
  1106.  
  1107. Wed Dec 20 01:32:06 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  1108.  
  1109.     * nl.c (proc_text): Use re_search instead of re_match.
  1110.  
  1111. Tue Dec 19 01:26:34 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  1112.  
  1113.     * nl.c: Indent.  Un-nest statements.  Use GNU regexp functions
  1114.     instead of System V ones.  Move function declarations together.
  1115.     (quit): Remove useless function.
  1116.     (program_name): New variable for error messages.
  1117.     (main): Use perror in error message.
  1118.     (xmalloc): New function to replace myalloc.
  1119.     (myalloc): Function removed.
  1120.     Global: use program_name and xmalloc.
  1121.  
  1122. Sun Dec 17 00:36:36 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  1123.  
  1124.     * uniq.c: Declare some functions.
  1125.     (main): Initialize infile and outfile.  Call usage if given
  1126.     invalid args.  Normally exit with 0 status instead of garbage.
  1127.     (usage): New function to print usage message and exit.
  1128.     (check_file): Remove unused variable.
  1129.     (readline): Compare against EOF, not < 0.
  1130.     (xmalloc, xrealloc): Return char *, not int.
  1131.     Ok to return 0 if 0 bytes requested.
  1132.     (lb1, lb2): Remove unused global vars.
  1133.     (concat): Remove unused function.
  1134.  
  1135. Sat Dec 16 15:15:50 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  1136.  
  1137.     * comm.c: Remove unused global variables lb1, lb2.
  1138.     (main): Remove unneeded variable.
  1139.     (compare_files): Remove unused arg.
  1140.     (readline): un-nest assignment.  Test against EOF instead of < 0.
  1141.     (error): Print to stderr, not stdout.
  1142.     (xmalloc, xrealloc): Return char * instead of int.
  1143.     Returning 0 is ok if 0 bytes requested (ANSI C).
  1144.  
  1145.  
  1146. Local Variables:
  1147. mode: indented-text
  1148. left-margin: 8
  1149. version-control: never
  1150. End:
  1151.